package com.zhx.springcloud.learn.service;

import com.zhx.springcloud.learn.config.HelloFeignServiceConfig;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 *describe: 一个简单的fegin 接口
 *
 *@author zhanghaixuan
 *@date 2019/01/04
 **/
@FeignClient(name = "github-client",url = "https://api.github.com",configuration = HelloFeignServiceConfig.class)
public interface HelloFeignService {

	@GetMapping("/search/repositories")
	String searchRepo(@RequestParam("q") String queryStr);
}
